package com.qs.user.ui.VM;

import android.app.Application;
import android.databinding.ObservableField;
import android.support.annotation.NonNull;

import com.alibaba.android.arouter.launcher.ARouter;
import com.qs.base.router.RouterActivityPath;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
* 关于我们
* @Author ltzz
* @Date 2019/8/24
*/
public class AboutUsrViewModel extends BaseViewModel {
    public AboutUsrViewModel(@NonNull Application application) {
        super(application);
    }
    //版本号
    public ObservableField<String> versionStr=new ObservableField<>("");

    //隐私政策点击
    public BindingCommand agreementClick=new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            ARouter.getInstance().build(RouterActivityPath.User.AGREEMENT_ACTIVITY).navigation();
        }
    });

    //隐私政策点击
    public BindingCommand userClick=new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            ARouter.getInstance().build(RouterActivityPath.User.TreatyActivity).navigation();
        }
    });
}
